package com.zyc.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zyc
 * @create 2022-03-01-21:15
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.zyc")
@ComponentScan(basePackages = "com.zyc")
//这个模块不加下面两行一直报找不到bean错
@MapperScan("com.zyc.mapper")
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

}
